Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

// !!IMPORTANT!!: ON SOME BOARDS W/ PLS916H, THE VCC TEST POINT IS
// NOT ACTUALLY CONNECTED TO VCC!!! YOU NEED TO MANUALLY CONNECT
// 3.0-4.2 VOLTS TO A CAPACITOR NEAR THE CHIP.
// SCK -> CLK
// MOSI -> DIN
// Protocol is generally standard SPI @1mhz w/ a 3uS pulse on clock line to signify end of transmission.
#include <Arduino.h>
#include <SPI.h>
@minoki
minoki / AsciiOnly.hs
Created August 31, 2026 02:23
An example of QualifiedStrings to validate the string literal at compile-time
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE RequiredTypeArguments #-}
{-# LANGUAGE UndecidableInstances #-}
module AsciiOnly where
import Data.Kind
import Data.Type.Ord
import Data.Proxy
import GHC.TypeLits
@hqman
hqman / CLAUDE.md
Created February 23, 2026 13:03
Boris Cherny’s CLAUDE.md

Workflow Orchestration

1. Plan Node Default

  • Enter plan mode for ANY non-trivial task (3+ steps or architectural decisions)
  • If something goes sideways, STOP and re-plan immediately - don't keep pushing
  • Use plan mode for verification steps, not just building
  • Write detailed specs upfront to reduce ambiguity

2. Subagent Strategy

  • Use subagents liberally to keep main context window clean
name: fast-ci
on:
push:
branches: [main]
paths-ignore:
- '**.md'
- 'docs/**'
pull_request:
paths-ignore:
@Cavemanmining
Cavemanmining / GTX1660_SUPER_WRITEUP.md
Last active December 2, 2026 02:20
Don't e-waste that GTX 1660 SUPER: measured fixes for local AI (llama.cpp 5x prompts, beats a DGX Spark at 8B writing, fp16 black-image fix)

Don't e-waste that GTX 1660 SUPER: measured fixes for local AI

Update 2026-12-01: re-measured on current llama.cpp, plus a DGX Spark head-to-head

All on the same GTX 1660 SUPER, stock 130 W, llama.cpp b12900, -DCMAKE_CUDA_ARCHITECTURES=72 -DGGML_CUDA_FORCE_MMQ=ON vs a stock arch-75 build, llama-bench, median of 3-5 runs. The older numbers below (commit 604cc43) all held within 3%.

Test Stock This recipe
7B Q4_0 (Mistral) pp512 146.9 767.6 (5.2x)
Qwen3 8B Q4_K_M pp512 141.3 451.9 (3.2x)
@Plecra
Plecra / kernel.rs
Last active December 2, 2026 02:19
A programming language for proof kernels
use std::collections::HashMap;
#[derive(Debug)]
enum Step {
Apply(u32, Vec<String>),
/// copy the judgement at absolute position n (counted from the bottom of the stack)
/// onto the active end of the stack, where the next rule application will pop it
Dup(u32),
}
fn fill(pat: &str, params: &[String]) -> Result<String, String> {
@mietzen
mietzen / m720q_setup.md
Last active December 2, 2026 02:19
m720q Setup: i7 8700 65W

m720q Setup with an i7-8700 65W

I had trouble getting my i7-8700 65W to work in my m720q with a 65W PSU. It was working fine in Windows, but was throttling down first to 20 Watt, then to 15, 10, and finally to 7 Watt, which resulted in a maximum clock speed of 800 MHz.

The main problem seems to be a mix of crappy firmware settings from Lenovo/Intel (Reddit Post) and the weak power supply.

To fix this problem, we have to install some tools, and for them to work, you have to make sure that secure boot is OFF; otherwise, the kernel doesn't allow you to set the CPU power limits. The easiest way is to install in legacy mode; therefore, you need to disable secure boot and enable CSM in the BIOS, select legacy boot preferred.

@SilenNaihin
SilenNaihin / 0-README.md
Last active December 2, 2026 02:17
Cut GitHub Actions CI cost ~10x: ephemeral self-hosted EC2 runners (github-aws-runners), a pre-built image, spot first, and a Claude Code skill that walks through the migration

Cut GitHub Actions CI cost ~10x with ephemeral self-hosted EC2 runners

Every CI job gets its own fresh EC2 machine in your AWS account, created when the job is queued and destroyed when it finishes. GitHub still schedules the jobs and shows the logs; only the machine underneath changes.

8 vCPU Linux Per minute
AWS CodeBuild LARGE $0.020
GitHub-hosted 8-core $0.022
EC2 on-demand ~$0.006
EC2 spot ~$0.002
Product Year Version Product Keys
Visual Studio 2026 18.x
Professional: NVTDK-QB8J9-M28GR-92BPC-BTHXK
Enterprise: VYGRN-WPR22-HG4X3-692BF-QGT2V
https://x.com/massgravel/status/1988306014371008542
Visual Studio 2022 2021 17.x Professional:
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
Enterprise: